package com.zretc.auth.dao;



import com.zretc.api.pojo.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.HashMap;
@Mapper
public interface SysUserMapper {

    SysUser getUserByName(String user_name);

    //获得用户权限列表
    ArrayList<String> getRoleList(Integer userId);

    ArrayList<HashMap<String,Object>> getMenuList(Integer userId);

    void addPoints(@Param("id") Integer id, @Param("points") int i);

    boolean updatePassword(@Param("newpass") String newpass, @Param("userId") int userId);

    boolean register(SysUser sysUser);

    int getIdByUsername(String userName);

    boolean initRole(int id);
}